﻿using System;


namespace advadev.CanOpen
{

    /// <summary>
    /// Must be implemented from each service timer
    /// </summary>
    public interface IServiceTimer
    {

        /// <summary>
        /// When implemented, occures when a time frame is started
        /// </summary>
        event ServiceTimerTimeFrameStartedEventHandler TimeFrameStarted;


        /// <summary>
        /// When implemented, starts the timer
        /// </summary>
        void Start();

        /// <summary>
        /// When implemented, stops the timer
        /// </summary>
        void Stop();

    }

}
